from rest_framework import serializers

from routes.models import PathModel, Phases
from curriculum.serializers import CourseSerializer
from curriculum.models import Course


class PathModelSerializer(serializers.ModelSerializer):
    class Meta:
        model = PathModel
        fields = '__all__'


class PhasesModelSerializer(serializers.ModelSerializer):
    phase = CourseSerializer(many=True)

    class Meta:
        model = Phases
        fields = '__all__'
